package com.ruoyi.feike.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.feike.mapper.ParkingLocationMapper;
import com.ruoyi.feike.domain.ParkingLocation;
import com.ruoyi.feike.service.IParkingLocationService;

/**
 * feikeService业务层处理
 * 
 * @author zmh
 * @date 2022-07-05
 */
@Service
public class ParkingLocationServiceImpl implements IParkingLocationService 
{
    @Autowired
    private ParkingLocationMapper parkingLocationMapper;

    /**
     * 查询feike
     * 
     * @param id feikeID
     * @return feike
     */
    @Override
    public ParkingLocation selectParkingLocationById(String id)
    {
        return parkingLocationMapper.selectParkingLocationById(id);
    }

    /**
     * 查询feike列表
     * 
     * @param parkingLocation feike
     * @return feike
     */
    @Override
    public List<ParkingLocation> selectParkingLocationList(ParkingLocation parkingLocation)
    {
        return parkingLocationMapper.selectParkingLocationList(parkingLocation);
    }

    /**
     * 新增feike
     * 
     * @param parkingLocation feike
     * @return 结果
     */
    @Override
    public int insertParkingLocation(ParkingLocation parkingLocation)
    {
        return parkingLocationMapper.insertParkingLocation(parkingLocation);
    }

    /**
     * 修改feike
     * 
     * @param parkingLocation feike
     * @return 结果
     */
    @Override
    public int updateParkingLocation(ParkingLocation parkingLocation)
    {
        return parkingLocationMapper.updateParkingLocation(parkingLocation);
    }

    /**
     * 批量删除feike
     * 
     * @param ids 需要删除的feikeID
     * @return 结果
     */
    @Override
    public int deleteParkingLocationByIds(String[] ids)
    {
        return parkingLocationMapper.deleteParkingLocationByIds(ids);
    }

    /**
     * 删除feike信息
     * 
     * @param id feikeID
     * @return 结果
     */
    @Override
    public int deleteParkingLocationById(String id)
    {
        return parkingLocationMapper.deleteParkingLocationById(id);
    }
}
